
import javax.swing.JOptionPane;


public class UsandoMath {

    
    public static void main(String[] args) {
        String teste = "abc";
        
        System.out.println("ola");    
        
        int aux = 15;
        
//        double result = Math.sqrt(81);
//        
//        double quadrado = Math.pow(15, 2);
//        System.out.println(result);
//        
//        System.out.println("Resultado quadrado: " + quadrado);
        
        double cat1 = Double.parseDouble(JOptionPane.showInputDialog(null,"Digite o cat1"));
        
        double cat2 = Double.parseDouble(JOptionPane.showInputDialog(null,"Digite e cat2"));
        
        double cat3 = Double.parseDouble(JOptionPane.showInputDialog(null,"Digite e cat3"));
        
        double hypot = Math.hypot(cat1, cat2);
        
        System.out.println("Hypot: " + hypot);
        
        double maximo = Math.max(cat1, Math.max(cat2, cat3));
        
        System.out.println("Maximo: " + maximo);
        for (int i = 0; i < 10; i++) {
            
            double random = (int) (Math.random() * 10);
            System.out.println("Número aleatorio: " + i + "=" + random);
            
        }
        
        
    }
    
}
